package Example20;
class  Outer{
    int m = 0;
    void test1() {
        System.out.println("外部类成员方法test1()");
    }
    class Inner{
    int n =1;
    void show1(){
        System.out.println("外部成员变量m=" + m);
        test1();
    }
        void show2(){
            System.out.println("内部成员方法shout()");
    }
}
void test2(){
        Inner inner = new Inner();
    System.out.println("内部成员变量n=" + inner.n);
    inner.show2();
}
    }
public class Example20 {
    public static void main(String[] args) {
        Outer outer = new Outer();
        Outer.Inner inner = outer.new Inner();
        inner.show1();
        outer.test2();
    }
}
